package com.distortiongames.level27.generation
{
	
	/**
	 * ...
	 * @author Jefferson Wagner
	 */
	public class Element
	{
		public static const NEUTRAL:int = 0, WATER:int = 1, FIRE:int = 2, EARTH:int = 3, WIND:int = 4;
		
		public static function fromString(value:String) : int
		{
			value = value.toUpperCase();
			var element:int = -1;
			if (value === "NEUTRAL")
				element = NEUTRAL;
			else if (value === "WATER")
				element = WATER;
			else if (value === "FIRE")
				element = FIRE;
			else if (value === "EARTH")
				element = EARTH;
			else if (value === "WIND")
				element = WIND;
			return element;
		}
	}

}